<?php
set_time_limit(0);

$h1 = mysql_connect('localhost', 'admin', 'admin') or die('unable to connet db');
mysql_select_db('shop_test', $h1) or die('unable to select db');

$r = mysql_query('SELECT * FROM `ms_product` WHERE id BETWEEN 1 AND 200000');

while($row = mysql_fetch_assoc($r))
{

}
